package lab02.test06;

public class Ladder {
    Ladder() {
    }

    //构造函数
    float up;
    float down;
    float height;
    float area;

    double area() {
        return ((up + down) * height) / 2;
        //行为：计算面积
    }
}
